﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace KnowledgeEntity
{
   public class CategoryAddingOverFlowException:Exception
   {
      private string CategoryName { get; set; }

      public CategoryAddingOverFlowException(Category category)
      {
         CategoryName = category.Name;
      }

      public override string Message
      {
         get
         {
            return string.Format("Adding category '{0}' causes stack over flow.",CategoryName);
         }
      }
   }
}
